/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Global;

import java.util.prefs.Preferences;

/**
 *
 * @author Sean
 */
public class UserPrefs {

    public void SavePreference(String key, String Value)
    {
        Preferences prefs = Preferences.userNodeForPackage(getClass());
        prefs.put(key, Value);
    }

    public String GetPreference(String key, String DefaultValue)
    {
        Preferences prefs = Preferences.userNodeForPackage(getClass());
        return prefs.get(key, DefaultValue);
    }

}
